const Router = require('koa-router');
const {verifyAuth} = require('../middleware/auth.middleware');
const {create, remove, update, list, socialType} = require("../controller/social.controller");

const socialRouter = new Router({prefix: "/social"});

// 用户添加社交方式
socialRouter.post("/", verifyAuth, create);
// 删除一个社交方式
socialRouter.delete("/", verifyAuth, remove);
// 修改一个社交方式
socialRouter.patch("/", verifyAuth, update);
// 获取社交列表
socialRouter.get("/", list);
// 获取全部社交方式
socialRouter.get("/type", socialType);

module.exports = socialRouter;
